package com.chuangjiangx.member.basic.ddd.query;

import com.chuangjiangx.member.stored.ddd.dal.condition.MbrOrderCountCondition;
import com.chuangjiangx.member.stored.ddd.dal.condition.AppOrderCountCondition;
import com.chuangjiangx.member.basic.ddd.dal.mapper.MbrCountDalMapper;
import com.chuangjiangx.member.stored.ddd.dal.dto.AppOrderStreamCount;
import com.chuangjiangx.member.stored.ddd.dal.dto.AppOrderStreamDetail;
import com.chuangjiangx.member.stored.ddd.dal.dto.MbrOrderCountInfo;
import com.chuangjiangx.member.basic.ddd.dal.dto.count.MbrAnalysisCountDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author cj-ch
 * @date 2018/6/19 下午5:17
 */
@Component
public class MbrCountQuery {

    @Autowired
    private MbrCountDalMapper mbrCountDalMapper;

    /**
     * 会员分析统计
     * @return
     */
    public MbrAnalysisCountDTO appMbrAnalysisCount(AppOrderCountCondition condition){
        MbrAnalysisCountDTO dto = new MbrAnalysisCountDTO();

        return dto;
    }


    /**
     * 订单流水统计
     * @param condition
     * @return
     */
    public AppOrderStreamCount appOrderStreamCount(AppOrderCountCondition condition){
        return mbrCountDalMapper.appOrderStreamCount(condition);
    }
    /**
     * 订单流水明细
     * @param condition
     * @return
     */
    public List<AppOrderStreamDetail> appOrderStreamDetails(AppOrderCountCondition condition){
        return mbrCountDalMapper.appOrderStreamDetails(condition);
    }

    /**
     * WEB 会员消费统计
     * @param condition
     * @return
     */
    public MbrOrderCountInfo webOrderCountInfo(MbrOrderCountCondition condition){
        return mbrCountDalMapper.webOrderCountInfo(condition);
    }
}
